package com.ewzj.bigdata.mvp.contract

import com.ewzj.bigdata.mvp.model.reqbean.ReqPraise
import com.ewzj.bigdata.mvp.model.reqbean.Reqcomentbean
import com.ewzj.bigdata.mvp.model.rspbean.BaseData
import com.ewzj.bigdata.mvp.model.rspbean.CommentBean
import com.jess.arms.mvp.IModel
import com.jess.arms.mvp.IView
import io.reactivex.Observable

/**
 * author:zhangjing
 * 作用:
 * return:
 */
interface HourseWebActivityContract {
    interface View : IView{
        fun reloadUrl(url:String)
        fun isCollected(iscollected:Int)
        fun reSetTitle(title:String)
        fun reSethint(title:String)
    }

    interface Model: IModel {
        fun read(gourl:String):Observable<BaseData<Any>>
        fun doPraise(reqPraise: ReqPraise):Observable<BaseData<String>>
        fun docomment(reqcomentbean: Reqcomentbean):Observable<BaseData<CommentBean>>
    }
}